Fix bogus initializion in str_utf8_to_ascii
authorrobertl <robertl>
Tue, 11 May 2004 15:46:13 +0000 (15:46 +0000)
committerrobertl <robertl>
Tue, 11 May 2004 15:46:13 +0000 (15:46 +0000)
util.c

diff --git a/util.c b/util.c
index 0d3505c9ff878e5e28ff1f38875b96e06a36fa36..25ffad8cac923f366099e59f2e879aa88430de89 100644 (file)
--- a/util.c
+++ b/util.c
@@ -772,7 +772,7 @@ char * str_utf8_to_ascii( const char * str )
                if ( *cur & 0x80 ) {
                        int bytes;
                        int value;
-                       char *strvalue = "";
+                       char *strvalue = NULL;
                        utf8_to_int( cur, &bytes, &value );
                        switch (value) {
                                case 0x2026: strvalue = "..."; break;